import 'package:ichinesereader/models/book/Series.dart';

class TextType {
  TextType({
    this.category,
    this.subCategory,
  });

  Series? category;
  String? subCategory;

  factory TextType.fromJson(Map<String, dynamic> json) => TextType(
        category: json["category"]!=null ? Series.fromJson(json["category"]) : null,
        subCategory: json["subCategory"],
      );

  Map<String, dynamic> toJson() => {
        "category": category!=null ? category?.toJson() : null,
        "subCategory": subCategory,
      };
}